package cn.thoughtworks.school.entities;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

@Entity
@DynamicInsert
@Getter
@Setter
@Table(name = "userDetail")
public class UserDetail {

    @Id
    @Column(name = "userId")
    private Long userId;

    @Column
    private String school;

    @NotNull
    @Column
    private String name;

    @Column
    private String major;

    @Column
    private String degree;

    @Column
    private String gender;

    @Column
    private String schoolProvince;

    @Column
    private String schoolCity;

    @Column
    private String entranceYear;
    private String wechat;
    private String qq;
    private Long currentOrganizationId;

}
